<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function sor(a, b, c) {
            var max = a
            var min = b
            var mid = c
            for (var i = 0; i < 3; i++) {
                if (max < arguments[i]) {
                    max = arguments[i]
                } else if (min > arguments[i]) {
                    min = arguments[i]
                }
            }
            mid = a + b + c - max - min
            return [min, mid, max]
        }
        console.log(sor(90, 14, 32))
    </script>
</body>

</html>